<template>
    <div class="p-2">
        <transition>
            <el-tabs v-model="activeTab" @tab-click="handleClick">
                <el-tab-pane label="盘点流水" name="inventoryFlow">
                    <inventoryFlow v-if="activeTab == 'inventoryFlow'" />
                </el-tab-pane>
                <el-tab-pane label="盘点详单" name="inventoryDetailedList">
                    <inventoryDetailedList v-if="activeTab == 'inventoryDetailedList'" />
                </el-tab-pane>
            </el-tabs>
        </transition>
    </div>
</template>
<script setup lang="ts">
import type { TabsPaneContext } from 'element-plus'
import inventoryFlow from './inventoryFlow.vue'
import inventoryDetailedList from './inventoryDetailedList.vue'


const activeTab = ref('inventoryFlow');

/**
 * tabs切换
 */
const handleClick = (tab: TabsPaneContext, event: Event) => {
    console.log(tab.props.name, event)
};

</script>
<style lang="scss" scoped>
.mb96 {
    margin-bottom: 96px;
}
</style>